'''计科1813-27-相红'''
import random
dz = [[], [], []]
color = ["红", "黄", "蓝"]
globes = ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
for globe in globes:
    index = random.randint(0, 2)
    dz[index].append(globe)
i = 0
for ball in dz:
    print("%s袋子中的球的序号为: %d" % (color[i], len(ball)))
    i += 1
    for name in ball:
        print("%s" % name, end="\t")
    print("\n")
    print("-" * 20)